package com.zhou.basics.model;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ProjectName: tfqingcheng
 * @ClassName: Ad
 * @Time: 2020/2/25
 * @Author: zhou24
 * @Description:
 * @Experience:
 */
@Table(name = "tb_ad")
@Data
public class Ad {
    @Id
    private Integer id;
    private String name;
    private String position;
    @Column(name = "start_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Column(name = "end_time")
    private Date endTime;
    private Character status;
    private String image;
    private String url;
    private String remarks;
}
